<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <script>
        var array = ["a","b"];
        array.push("c");
        array.push("d");
        alert(array)
    </script>
</body>
</html>